package cn.lg.soar.mvc.event;

import cn.lg.soar.mvc.enums.SseEventTypeEnum;
import lombok.Getter;
import lombok.ToString;
import org.springframework.context.ApplicationEvent;

/**
 * websocket事件
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@ToString
@Getter
public class SseEvent extends ApplicationEvent {

    protected final SseEventTypeEnum type;

    protected final String clientId;

    protected final Integer size;

    public SseEvent(SseEventTypeEnum type, String clientId, Integer size) {
        super(size);
        this.type = type;
        this.size = size;
        this.clientId = clientId;
    }

}
